package com.redoor.app.stake.basicdata.service;


import com.redoor.app.stake.basicdata.model.BaseCharger;
import com.redoor.app.stake.basicdata.model.BaseParkingArea;
import com.redoor.app.stake.basicdata.model.BaseStation;
import com.yotouch.app.stake.model.Charger;
import com.yotouch.app.stake.model.Station;

import java.util.List;

/**
 * 枪数据缓存服务封装类
 * Created by wangjunlei on 2018/1/30.
 */
public interface BaseChargerRedisService {
    /**
     * 添加或更新枪数据对象
     * @param key
     * @param charger
     * @return
     */
    public boolean modifyChargerInfo(String key, BaseCharger charger);

    /**
     * 检查枪是否存在
     * @param key
     * @return
     */
    public boolean isExistsCharger(String key);

    /**
     * 删除枪缓存
     * @param key
     * @return
     */
    public boolean deleteChargerInfo(String key);

    public BaseCharger getChargerFromRedis(String uuid);

    /**
     * HSF接口 增加缓存数据
     * @param key
     * @param charger
     * @return
     */
    public boolean modifyChargerInfoHSF(String key, Charger charger);

    /**
     * 根据主键从缓存查询枪数据--HSF 接口
     * @param uuid
     * @return
     */
    public Charger getChargerHSF(String uuid);

    /**
     * 根据枪编号查找
     * @param chargerNo
     * @return
     */
    public String getUuidByChargerNo(String chargerNo);

}
